package com.example.user.controller.basic.vo;

import com.example.user.constants.UserConstants;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@Accessors(chain = true)
public class UserPasswordUpdateVO implements Serializable {

    @NotBlank
    private String oldPassword;

    @NotNull
    @Pattern(regexp = UserConstants.PASSWORD_REGEX)
    private String password;

}
